<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div></div>
    <script>
        let str = decodeURIComponent(location.search);
        str = str.substr(1).split('&');
        let arr = [];
        console.log(str);
        for (let i = 0; i < str.length; i++) {
            if (str[i].indexOf('=')) {
                arr.push(str[i].split('='));
            }
        }
        let div = document.querySelector('div');
        div.innerHTML = arr[0][1] + '欢迎您';
    </script>
</body>

</html>